<!--SIF Implementation Specification 2.2-6 (March 17, 2008)-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" targetNamespace="http://www.sifinfo.org/infrastructure/2.x" xmlns:sif="http://www.sifinfo.org/infrastructure/2.x" elementFormDefault="qualified">
  <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="imports/xml/xml.xsd" />
  <xs:complexType name="LibraryPatronStatusType">
    <xs:sequence>
      <xs:element name="ElectronicIdList" minOccurs="0" type="sif:ElectronicIdListType" />
      <xs:element name="TransactionList" minOccurs="0" nillable="true">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Transaction" minOccurs="0" maxOccurs="unbounded">
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="ItemInfo" minOccurs="0" nillable="true">
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="Title" minOccurs="0" type="xs:string" />
                        <xs:element name="Author" minOccurs="0" nillable="true" type="xs:string" />
                        <xs:element name="ElectronicId" minOccurs="0" nillable="true" type="sif:ElectronicIdType" />
                        <xs:element name="CallNumber" minOccurs="0" nillable="true" type="xs:string" />
                        <xs:element name="Price" minOccurs="0" nillable="true" type="sif:MonetaryAmountType" />
                      </xs:sequence>
                      <xs:attribute name="Type" use="required">
                        <xs:simpleType>
                          <xs:restriction base="xs:token">
                            <xs:enumeration value="Asset" />
                            <xs:enumeration value="LibraryMaterial" />
                            <xs:enumeration value="Media" />
                            <xs:enumeration value="Textbook" />
                          </xs:restriction>
                        </xs:simpleType>
                      </xs:attribute>
                    </xs:complexType>
                  </xs:element>
                  <xs:element name="CheckoutInfo" minOccurs="0" nillable="true">
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="ReturnBy" minOccurs="0" type="xs:dateTime" />
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>
                  <xs:element name="FineInfoList" minOccurs="0" nillable="true">
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="FineInfo" minOccurs="0" maxOccurs="unbounded">
                          <xs:complexType>
                            <xs:sequence>
                              <xs:element name="Assessed" minOccurs="0" type="xs:dateTime" />
                              <xs:element name="Description" minOccurs="0" nillable="true" type="xs:string" />
                              <xs:element name="Amount" minOccurs="0" type="sif:MonetaryAmountType" />
                              <xs:element name="Reference" minOccurs="0" nillable="true" type="xs:string" />
                            </xs:sequence>
                            <xs:attribute name="Type" use="required">
                              <xs:simpleType>
                                <xs:restriction base="xs:token">
                                  <xs:enumeration value="Damaged" />
                                  <xs:enumeration value="Lost" />
                                  <xs:enumeration value="Overdue" />
                                  <xs:enumeration value="Refund" />
                                  <xs:enumeration value="Other" />
                                </xs:restriction>
                              </xs:simpleType>
                            </xs:attribute>
                          </xs:complexType>
                        </xs:element>
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>
                  <xs:element name="HoldInfoList" minOccurs="0" nillable="true">
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="HoldInfo" minOccurs="0" maxOccurs="unbounded">
                          <xs:complexType>
                            <xs:sequence>
                              <xs:element name="DatePlaced" minOccurs="0" type="xs:date" />
                              <xs:element name="DateNeeded" minOccurs="0" nillable="true" type="xs:date" />
                              <xs:element name="MadeAvailable" minOccurs="0" nillable="true" type="xs:date" />
                              <xs:element name="Expires" minOccurs="0" nillable="true" type="xs:date" />
                            </xs:sequence>
                            <xs:attribute name="Type" use="required">
                              <xs:simpleType>
                                <xs:restriction base="xs:token">
                                  <xs:enumeration value="Ready" />
                                  <xs:enumeration value="NotReady" />
                                </xs:restriction>
                              </xs:simpleType>
                            </xs:attribute>
                          </xs:complexType>
                        </xs:element>
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="MessageList" minOccurs="0" nillable="true">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Message" minOccurs="0" maxOccurs="unbounded">
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="Sent" minOccurs="0" nillable="true" type="xs:dateTime" />
                  <xs:element name="Text" minOccurs="0" type="xs:string" />
                </xs:sequence>
                <xs:attribute name="Priority" use="required">
                  <xs:simpleType>
                    <xs:restriction base="xs:token">
                      <xs:enumeration value="Low" />
                      <xs:enumeration value="Normal" />
                      <xs:enumeration value="Urgent" />
                    </xs:restriction>
                  </xs:simpleType>
                </xs:attribute>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="NumberOfCheckouts" minOccurs="0" type="xs:unsignedInt" />
      <xs:element name="NumberOfOverdues" minOccurs="0" type="xs:unsignedInt" />
      <xs:element name="NumberOfFines" minOccurs="0" type="xs:unsignedInt" />
      <xs:element name="FineAmount" minOccurs="0" type="sif:MonetaryAmountType" />
      <xs:element name="NumberOfRefunds" minOccurs="0" nillable="true" type="xs:unsignedInt" />
      <xs:element name="RefundAmount" minOccurs="0" nillable="true" type="sif:MonetaryAmountType" />
      <xs:element name="SIF_Metadata" minOccurs="0" nillable="true" type="sif:SIF_MetadataType" />
      <xs:element name="SIF_ExtendedElements" minOccurs="0" nillable="true" type="sif:SIF_ExtendedElementsType" />
    </xs:sequence>
    <xs:attribute name="LibraryType" use="required" type="xs:string" />
    <xs:attribute name="SIF_RefId" use="required" type="sif:IdRefType" />
    <xs:attribute name="SIF_RefObject" use="required">
      <xs:simpleType>
        <xs:restriction base="xs:token">
          <xs:enumeration value="StudentPersonal" />
          <xs:enumeration value="StaffPersonal" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>

  <xs:element name="LibraryPatronStatus" type="sif:LibraryPatronStatusType" />

</xs:schema>